<#assign EntityMapperUtils = statics["top.cardone.generator.code.util.EntityMapperUtils"]>
UPDATE ${entityMapper.tableName} SET END_DATE = NOW(), DATA_STATE_CODE = '0' WHERE
${EntityMapperUtils.getPKS(entityMapper)!'ID'} = ANY(string_to_array(:${(businessCode?uncap_first)!''}Ids, ','))